package com.example.icongyou.bean;

// 用于接收COS的返回值，COS返回的是一个临时访问链接（约1小时）而不是一个绝对的地址
public class ApiResponse<T> {
    private int code;
    private String msg;
    private T data;

    // getters and setters
    public int getCode() { return code; }
    public void setCode(int code) { this.code = code; }

    public String getMsg() { return msg; }
    public void setMsg(String msg) { this.msg = msg; }

    public T getData() { return data; }
    public void setData(T data) { this.data = data; }

    public boolean isSuccess() {
        return code == 200; // 根据您的后端返回码调整
    }
}